package com.dragon.modules.yuegou.model.merchant;

import com.dragon.modules.yuegou.entity.merchant.ActivityFaqEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 咨询模型类
 * 
 * @author pbuilder generated
 * @date 2019-09-23 10:50:55
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class ActivityFaq extends ActivityFaqEntity {
	
	@ApiModelProperty("创建人名称")
	private String createdName;
	
	@ApiModelProperty("所属栏目")
	private String columName;
	
	public String getColumName() {
		return columName;
	}

	public void setColumName(String columName) {
		this.columName = columName;
	}

	public String getCreatedName() {
		return createdName;
	}

	public void setCreatedName(String createdName) {
		this.createdName = createdName;
	}

	/**
	 * 构造一个空咨询模型对象
	 */
	public ActivityFaq(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个咨询模型对象
	 * 
	 * @param entity 实体对象
	 */
	public ActivityFaq(ActivityFaqEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个咨询模型对象
	 * 
	 * @param other 其它对象
	 */
	public ActivityFaq(ActivityFaq other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public ActivityFaq id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈Id
	 * 
	 * @param busdId 商圈Id
	 * @return 当前对象
	 */
    public ActivityFaq busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getTitle() {
    	return title;
    }

    /**
	 * 设置标题
	 * 
	 * @param title 标题
	 * @return 当前对象
	 */
    public ActivityFaq title(String title) {
    	this.title = title;
    	return this;
    }

    @Override
	public String getContent() {
    	return content;
    }

    /**
	 * 设置图片json 数组
	 * 
	 * @param content 图片json 数组
	 * @return 当前对象
	 */
    public ActivityFaq content(String content) {
    	this.content = content;
    	return this;
    }

	@Override
	public Integer getSortNo() {
    	return sortNo;
    }

    /**
	 * 设置排序
	 * 
	 * @param sortNo 排序
	 * @return 当前对象
	 */
    public ActivityFaq sortNo(Integer sortNo) {
    	this.sortNo = sortNo;
    	return this;
    }

	@Override
	public String getColumnId() {
    	return columnId;
    }

    /**
	 * 设置对应的栏目id
	 * 
	 * @param columnId 对应的栏目id
	 * @return 当前对象
	 */
    public ActivityFaq columnId(String columnId) {
    	this.columnId = columnId;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置创建人Id
	 * 
	 * @param createdBy 创建人Id
	 * @return 当前对象
	 */
    public ActivityFaq createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public ActivityFaq createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }
}
